import store from '@/store'
import router from '@/router';

export default {
// 关闭当前tab页签，打开新页签
  closeOpenPage(obj) {
    // router.currentRoute.path
    store.commit("tabRouter/subtractCurrentTabRouter", { path:router.currentRoute.path });
    // if (obj) {
    //   return router.push({
    //     ...obj,
    //     query:{
    //       ...obj.query,
    //       t: Date.parse(new Date()) // 用于刷新keep-alive
    //     }
    //   });
    // }
  },
}
